#!/bin/bash
for f in $@; do
    echo -e "\n==> $f <=="
    cat $f | awk 'BEGIN{FS="\t";OFS="\t"} {print NF}' | awk 'BEGIN{FS="\t";OFS="\t";} { x=$1; if (! a[x]) a[x] = 0;a[x] += 1;} END{for (x in a){print x, a[x]}}'
done
